package com.wind.controller;

import com.wind.vo.Json;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController extends BaseController{

    @RequestMapping("/page")
    public Json page(@RequestBody String body){
        log.info("demo page:{}",body);
        return Json.succ();
    }

    @RequestMapping("/add")
    public Json add(@RequestBody String body){
        log.info("demo add:{}",body);
        return Json.succ();
    }

    @RequestMapping("/update")
    public Json update(@RequestBody String body){
        log.info("demo update:{}",body);

        return Json.succ();
    }

    @RequestMapping("/del")
    public Json del(@RequestBody String body){
        log.info("demo del:{}",body);

        return Json.succ();
    }

}
